/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package khoa;

/**
 *
 * @author JV-SL1001
 */
public class TestArrays {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        int[] array1 = {2, 3, 5, 7, 11, 13, 19};
        System.out.println("mang 1 la: ");
        for (int i : array1) {
            System.out.print(i + "  ");

        }

        int[] array2 = array1;
        for (int i = 0; i < array2.length; i++) {
            array2[i] = i;


        }



        System.out.println("");
        System.out.println("mang 2 la");
        for (int i : array2) {
            System.out.print(i + "  ");

        }
        System.out.println("");
        System.out.println("mang 1 sau khi gan la ");
        for (int i : array1) {
            System.out.print(i + "  ");

        }



    }
}
